<?php

class Opdracht extends SoapModel
{
	protected $_sugarModuleName = 'STUD_Opdrachten';
	
	public static function find( $id, array $options = array() )
	{
		return parent::find( __CLASS__, $id, $options );
	}
	
	public static function getField( $fieldName )
	{
		return parent::getField( __CLASS__, $fieldName );
	}
	
	public function beforeSave()
	{
		$this->klw_opdr = !empty( $this->kwl_opdr ) ? 'y' : 'n';
		$this->werkplek = !empty( $this->werkplek ) ? 'y' : 'n';
	}
}
